/*
 *
 gcc showtxt.c testfilesystem.c -lmingw32 -lSDL2_test -lSDL2main -lSDL2 && a
 gcc testfilesystem.c -lSDL2 -lSDL2_ttf -lSDL2_mixer -lSDL2_image && ./a.out
 Copyright (C) 1997-2014 Sam Lantinga <slouken@libsdl.org>

 This software is provided 'as-is', without any express or implied
 warranty.  In no event will the authors be held liable for any damages
 arising from the use of this software.

 Permission is granted to anyone to use this software for any purpose,
 including commercial applications, and to alter it and redistribute it
 freely.
 */
/* Simple test of power subsystem. */

#include <stdio.h>
#include "SDL2/SDL.h"

SDL_Renderer *renderer;
char*show_str;
int main(int argc, char *argv[])
{
	/* Enable standard application logging */
	renderer = (SDL_Renderer*)init_();

	show_str = (char*)append_str(show_str, "base path: '%s'\n", SDL_GetBasePath());
	show_str = (char*)append_str(show_str, "pref path: '%s'\n", SDL_GetPrefPath("test", "subsystem2"));
	draw_str(renderer,0,0,show_str,240,320);

	SDL_Delay(6000);        /* Effects only have length 5000 */
	SDL_Quit();
	return 0;
}

